package com.xubeizhi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xubeizhi.common.ResponseResult;
import com.xubeizhi.dto.EmailLoginDTO;
import com.xubeizhi.dto.EmailRegisterDTO;
import com.xubeizhi.dto.QQLoginDTO;
import com.xubeizhi.dto.UserAuthDTO;
import com.xubeizhi.entity.UserAuth;

/**
 * 服务类
 * @author mi
 * @create 2023/3/3 10:28
 */
public interface UserAuthService extends IService<UserAuth> {
    ResponseResult emailRegister(EmailRegisterDTO emailRegisterDTO);

    ResponseResult updatePassword(EmailRegisterDTO emailRegisterDTO);

    ResponseResult emailLogin(EmailLoginDTO emailLoginDTO);

    ResponseResult qqLogin(QQLoginDTO qqLoginDTO);

    ResponseResult weiboLogin(String code);


    ResponseResult giteeLogin(String code);

    ResponseResult sendEmailCode(String email);

    ResponseResult bindEmail(UserAuthDTO vo);

    ResponseResult updateUser(UserAuthDTO vo);
}
